<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./demo.css">
</head>
<body>
    <div class="magnifier magnifier1">
        <div class="img">
            <div class="mask"></div>
        </div>
        <ul>
            <li class="active" imgName="1">
                <img src="./img/small1.jpg" alt="">
            </li>
            <li imgName="2">
                <img src="./img/small2.jpg" alt="">
            </li>
        </ul>
        <div class="enlarge"></div>
    </div>
<br>
<br>
<hr>
<br>
<br>
    <div class="magnifier magnifier2">
        <div class="img">
            <div class="mask"></div>
        </div>
        <ul>
            <li class="active" imgName="1">
                <img src="./img/small1.jpg" alt="">
            </li>
            <li imgName="2">
                <img src="./img/small2.jpg" alt="">
            </li>
        </ul>
        <div class="enlarge"></div>
    </div>


    <script type="module">
        import Magnifier from './demo.js'
        const magnifier1 = new Magnifier('.magnifier1',{})
        const magnifier2 = new Magnifier('.magnifier2',{})
    </script>
</body>
</html>